/*
 * @Author: Wangjun
 * @Date: 2023-09-22 14:57:02
 * @LastEditTime: 2023-09-22 15:11:10
 * @LastEditors: Wangjun
 * @Description:
 * @FilePath: \nodex\nodetime\now.go
 * hnxr
 */
package nodetime

import "time"

var gNow = int64(-1)

func SetTime(t int64) {
	gNow = t
}

func Now() int64 {
	if gNow < 0 {
		return time.Now().Unix()
	}
	return gNow
}
